Skip to content

Commit

Permalink
fix prettier lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
beesaferoot committed Dec 11, 2024
1 parent 1dee06c commit fbc0034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/modules/Meter/Transactions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ export default {
},
formatToken(token) {
// Ensure token is a string
const tokenStr = String(token);
const tokenStr = String(token)
// Format in the desired pattern
// return tokenStr.match(/.{1,4}/g).join('-'); // For "1234-1234-1234"
return tokenStr.match(/.{1,3}/g).join(' '); // For "123 412 341 234"
return tokenStr.match(/.{1,3}/g).join(" ") // For "123 412 341 234"
},
},
}
Expand Down

0 comments on commit fbc0034

Please sign in to comment.