Fix labels in invite link dialog (#10472)

This commit is contained in:
DS Boyce
2026-05-14 05:30:07 -07:00
committed by GitHub
parent da44df9124
commit c81174e4f0
@@ -199,7 +199,10 @@ export function InviteLinkDialog({
)
break
case Step.GENERATE:
header = l`Generate invite link`
header =
joinLink && enabledStatus === 'enabled'
? l`Update invite link`
: l`Generate invite link`
content = (
<>
<View>
@@ -234,7 +237,11 @@ export function InviteLinkDialog({
</View>
<View style={[a.mt_4xl]}>
<Button
label={l`Generate invite link`}
label={
joinLink && enabledStatus === 'enabled'
? l`Update invite link`
: l`Generate invite link`
}
color="primary"
size="large"
disabled={isSaving}