forked from coracle/flotilla
24aa62a503
Co-authored-by: userAdityaa <aditya.chaudhary1558@gmail.com> Co-committed-by: userAdityaa <aditya.chaudhary1558@gmail.com>
12 lines
392 B
TypeScript
12 lines
392 B
TypeScript
export const POMADE_INVALID_LOGIN_MESSAGE = "Invalid login information"
|
|
export const POMADE_NETWORK_ERROR_MESSAGE = "Network error, please try again"
|
|
|
|
type PomadeMessage = {
|
|
res?: unknown
|
|
}
|
|
|
|
export const getPomadeLoginFailureMessage = (messages: PomadeMessage[]) =>
|
|
messages.some(message => message.res !== undefined)
|
|
? POMADE_INVALID_LOGIN_MESSAGE
|
|
: POMADE_NETWORK_ERROR_MESSAGE
|