Skip to content

Commit

Permalink
refactor: updated input label
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Jan 17, 2024
1 parent c7a5804 commit cc18ebe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Components/ABDM/LinkABHANumberModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,12 @@ const ScanABHAQRSection = ({
return (
<div>
<QRScanner
label="Enter ABHA Number"
label="Enter ABHA Number / ABHA Address"
value={qrValue}
disabled={!!authMethods.length}
onChange={(value) => {
if (value[0] && !isNaN(Number(value[0]))) {
// 92-1234-1234-1234
if ([2, 7, 12].includes(value.length)) {
if (qrValue.length && qrValue[qrValue.length - 1] === "-") {
value.slice(value.length - 1);
Expand Down

0 comments on commit cc18ebe

Please sign in to comment.