Improve error message

This commit is contained in:
Ian Philips 2022-05-06 16:33:46 -04:00
parent b3d204b128
commit 9eabd1a3e8
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ export const createAnswer = functions.runWith({ minInstances: 1 }).https.onCall(
const manaAllowed = manaLimitPerUser - currentInvested
return {
status: 'error',
message: `Market bet cap is M$${manaLimitPerUser}, M$${manaAllowed} left`,
message: `Market bet cap is M$${manaLimitPerUser}, you've M$${manaAllowed} left`,
}
}
const [lastAnswer] = await getValues<Answer>(

View File

@ -86,7 +86,7 @@ export const placeBet = functions.runWith({ minInstances: 1 }).https.onCall(
const manaAllowed = manaLimitPerUser - currentInvested
return {
status: 'error',
message: `Market bet cap is M$${manaLimitPerUser}, M$${manaAllowed} left`,
message: `Market bet cap is M$${manaLimitPerUser}, you've M$${manaAllowed} left`,
}
}
}