Skip to content

Commit

Permalink
show edit hint only if positions are there
Browse files Browse the repository at this point in the history
  • Loading branch information
sknr15 committed Oct 26, 2022
1 parent 48e3116 commit 30f1d2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,9 @@ export const LinkedMap = ({
</View>
)}
</ScrollView>
<Text style={{ fontSize: 12, fontStyle: 'italic', color: 'gray' }}>Hint: Click on a position to edit</Text>
{searchedPositions.length > 0 && (
<Text style={{ fontSize: 12, fontStyle: 'italic', color: 'gray' }}>Hint: Click on a position to edit</Text>
)}
</View>
);
}
Expand Down

0 comments on commit 30f1d2f

Please sign in to comment.