Skip to content

Commit

Permalink
Id to upper case
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Aug 28, 2023
1 parent bb27603 commit aac29d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/DistributorPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const DistributorPage = () => {
const parseId = (rawId) => {
if (rawId.length !== MANUAL_SERIAL_LENGTH && rawId.length !== FULL_SERIAL_LENGTH) return null
if (rawId.length === MANUAL_SERIAL_LENGTH) return STATIC_SERIAL_PART + rawId
if (rawId.substring(0, settings.serialSeparatorPos) === STATIC_SERIAL_PART) return rawId
if (rawId.substring(0, settings.serialSeparatorPos).toUpperCase() === STATIC_SERIAL_PART.toUpperCase()) return rawId

return null
}
Expand Down

0 comments on commit aac29d2

Please sign in to comment.