Skip to content

Commit

Permalink
added mozilla header
Browse files Browse the repository at this point in the history
  • Loading branch information
gyordong committed Nov 16, 2024
1 parent 6b0f69e commit 4b6d8db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client/app/utils/unitInput.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// Checks if custom rate is valid by verifying that it is a positive integer.
export const customRateValid = (customRate: number) => {
return Number.isInteger(customRate) && customRate >= 1;
Expand Down

0 comments on commit 4b6d8db

Please sign in to comment.