Skip to content

Commit

Permalink
fix(loyalty-points): Fixing initial returned (un)authorized status on…
Browse files Browse the repository at this point in the history
… create transaction
  • Loading branch information
leomp12 committed Jan 16, 2025
1 parent 39bde03 commit baa14cf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ export default async (appData: AppModuleBody) => {
}

transaction.status = {
current: pointsToConsume && pointsToConsume <= 0 ? 'authorized' : 'unauthorized',
current: typeof pointsToConsume === 'number' && pointsToConsume <= 0
? 'authorized'
: 'unauthorized',
};

return {
Expand Down

0 comments on commit baa14cf

Please sign in to comment.