Skip to content

Commit

Permalink
fix: replace empty string with undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Slysoks committed Jan 4, 2025
1 parent 65dc5ac commit 4e67614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/login/pronote/PronoteInstanceSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ const PronoteInstanceSelector: Screen<"PronoteInstanceSelector"> = ({
);
}}
text={instance.name}
subtext={prevRoute.name === "PronoteManualLocation" ? "" : ${instance.distance.toFixed(2)}km de toi`}
subtext={prevRoute.name === "PronoteManualLocation" ? undefined : ${instance.distance.toFixed(2)}km de toi`}
/>
</Reanimated.View>
))}
Expand Down

0 comments on commit 4e67614

Please sign in to comment.