aboutsummaryrefslogtreecommitdiff
path: root/src/components/taggs/Tagg.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/taggs/Tagg.tsx')
-rw-r--r--src/components/taggs/Tagg.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/taggs/Tagg.tsx b/src/components/taggs/Tagg.tsx
index 086b3c87..8158cbac 100644
--- a/src/components/taggs/Tagg.tsx
+++ b/src/components/taggs/Tagg.tsx
@@ -26,7 +26,7 @@ interface TaggProps {
isLinked: boolean;
isIntegrated: boolean;
setTaggsNeedUpdate: (_: boolean) => void;
- setSocialDataNeedUpdate: (_: string) => void;
+ setSocialDataNeedUpdate: (social: string, username: string) => void;
userXId: string;
screenType: ScreenType;
}
@@ -84,7 +84,7 @@ const Tagg: React.FC<TaggProps> = ({
if (isIntegrated) {
handlePressForAuthBrowser(social).then((success) => {
setTaggsNeedUpdate(success);
- if (success) setSocialDataNeedUpdate(social);
+ if (success) setSocialDataNeedUpdate(social, '');
});
} else {
setModalVisible(true);
@@ -112,6 +112,7 @@ const Tagg: React.FC<TaggProps> = ({
if (await registerNonIntegratedSocialLink(social, username)) {
Alert.alert(`Successfully linked ${social} 🎉`);
setTaggsNeedUpdate(true);
+ setSocialDataNeedUpdate(social, username);
} else {
// If we display too fast the alert will get dismissed with the modal
setTimeout(() => {