Fix error thrown in SmartSafetyNumberModal

This commit is contained in:
Jamie Kyle 2024-03-14 12:35:03 -07:00 committed by GitHub
parent e0c2627dc6
commit d696a2c082
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 9 deletions

View file

@ -17,9 +17,9 @@ export type PropsType = {
generateSafetyNumber: (contact: ConversationType) => void;
i18n: LocalizerType;
onClose: () => void;
safetyNumber?: SafetyNumberType;
safetyNumber: SafetyNumberType | null;
toggleVerified: (contact: ConversationType) => void;
verificationDisabled: boolean;
verificationDisabled: boolean | null;
};
export function SafetyNumberViewer({
@ -108,7 +108,7 @@ export function SafetyNumberViewer({
<div className="module-SafetyNumberViewer__button">
<Button
disabled={verificationDisabled}
disabled={verificationDisabled ?? false}
onClick={() => {
toggleVerified(contact);
}}