allow resending immediately
This commit is contained in:
@@ -17,7 +17,7 @@ export type State =
|
|||||||
step: '2: verify number'
|
step: '2: verify number'
|
||||||
phoneCountryCode: CountryCode
|
phoneCountryCode: CountryCode
|
||||||
phoneNumber: string
|
phoneNumber: string
|
||||||
lastSentAt: Date
|
lastSentAt: Date | null
|
||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
step: '3: get contacts'
|
step: '3: get contacts'
|
||||||
@@ -89,7 +89,7 @@ function reducer(state: State, action: Action): State {
|
|||||||
return {
|
return {
|
||||||
step: '2: verify number',
|
step: '2: verify number',
|
||||||
...action.payload,
|
...action.payload,
|
||||||
lastSentAt: new Date(),
|
lastSentAt: null,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 'RESEND_VERIFICATION_CODE': {
|
case 'RESEND_VERIFICATION_CODE': {
|
||||||
|
|||||||
Reference in New Issue
Block a user