Skip to content

Commit

Permalink
Display expiry date on valid mots on waiting room to car
Browse files Browse the repository at this point in the history
  • Loading branch information
RLCorp committed Sep 17, 2024
1 parent 1b7d28e commit 8be95e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</ion-col>
<ion-col>
<ion-text>
{{ isValidMOT() ? data?.status : data?.expiryDate ? 'Expired ' + data?.expiryDate : 'Not valid' }}
{{ isValidMOT() ? data?.expiryDate ? 'Valid until ' + data?.expiryDate : 'Valid' : data?.expiryDate ? 'Expired ' + data?.expiryDate : 'Not valid' }}
</ion-text>
</ion-col>
</ion-row>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const fakeMOTResults: {
make: 'Practice',
model: 'Mode',
status: MotStatusCodes.VALID,
expiryDate: '01/01/0001',
expiryDate: '31/12/9999',
},
},
fail: {
Expand Down

0 comments on commit 8be95e3

Please sign in to comment.