fix: [CAL-3374] Says Number is not Verified, but it is Verified (#14531)

* fix: [CAL-3374] Says Number is not Verified, but it is Verified

* clearing error only when verified

* type-checks fixed

* chore: improvement

---------

Co-authored-by: Udit Takkar <[email protected]>
Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-04-12 11:33:24 -04:00
1 parent f58f5e4e02
commit ac858c9bee
88 files changed
+109 -126

No files matched your search

+2 -2
View File
@@ -47,7 +47,7 @@ const IntegrationContainer = ({
handleModelOpen: (data: EditModalState) => void;
}) => {
const { t } = useLocale();
const utils = trpc.useContext();
const utils = trpc.useUtils();
const [disableDialog, setDisableDialog] = useState(false);
const showKeyModal = (fromEnabled?: boolean) => {
@@ -187,7 +187,7 @@ const EditKeysModal: FC<{
fromEnabled?: boolean;
appName?: string;
}> = (props) => {
const utils = trpc.useContext();
const utils = trpc.useUtils();
const { t } = useLocale();
const { dirName, slug, type, isOpen, keys, handleModelClose, fromEnabled, appName } = props;
const appKeySchema = appKeysSchemas[dirName as keyof typeof appKeysSchemas];
@@ -22,7 +22,7 @@ export default function DisconnectIntegration({
}) {
const { t } = useLocale();
const [modalOpen, setModalOpen] = useState(false);
const utils = trpc.useContext();
const utils = trpc.useUtils();
const mutation = trpc.viewer.deleteCredential.useMutation({
onSuccess: () => {
@@ -16,7 +16,7 @@ export default function DisconnectIntegrationModal({
teamId,
}: DisconnectIntegrationModalProps) {
const { t } = useLocale();
const utils = trpc.useContext();
const utils = trpc.useUtils();
const mutation = trpc.viewer.deleteCredential.useMutation({
onSuccess: () => {