Auto fill OTP in modal
This commit is contained in:
@@ -363,7 +363,7 @@ const AnalysisResultPage = () => {
|
|||||||
setTimeout(() => setToast({ show: false, message: '' }), 4000);
|
setTimeout(() => setToast({ show: false, message: '' }), 4000);
|
||||||
} else {
|
} else {
|
||||||
setShowOtpModal(true);
|
setShowOtpModal(true);
|
||||||
setOtp(new Array(6).fill(''));
|
setOtp(user.otp ? user.otp.split('') : new Array(6).fill(''));
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setFormErrors({ phone: err.message || 'Failed to send message. Please try again.' });
|
setFormErrors({ phone: err.message || 'Failed to send message. Please try again.' });
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
const cp = require('child_process');
|
||||||
|
const out = cp.execSync(`curl.exe -s -X GET "https://deploy.digifox.live/api/v1/applications" -H "Authorization: Bearer 4|lL3pgQVbfLb6KtUByDLaswjP4Jccny8HMj5jrs0v4ace4e78" -H "Content-Type: application/json"`).toString();
|
||||||
|
const apps = JSON.parse(out);
|
||||||
|
const f = apps.find(a => a.name === 'limelite-frontend');
|
||||||
|
console.log(f ? f.uuid : 'Not found');
|
||||||
Reference in New Issue
Block a user