Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/components/map-screen/AddButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { makeStyles, useTheme } from "@rneui/themed"
import Icon from "react-native-vector-icons/Ionicons"

// hooks
import { useLevel } from "@app/graphql/level-context"
import { AccountLevel, useLevel } from "@app/graphql/level-context"

// utils
import { toastShow } from "@app/utils/toast"
Expand All @@ -26,7 +26,7 @@ export const AddButton: React.FC<Props> = ({ handleOnPress }) => {
})
}

if (level === "TWO") {
if (level === AccountLevel.Two || level === AccountLevel.Three) {
return (
<TouchableOpacity style={styles.addButton} onPress={handleAddPin}>
<Icon name="add" size={50} color={colors.white} />
Expand Down
2 changes: 1 addition & 1 deletion app/graphql/level-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const LevelContainer: React.FC<PropsWithChildren> = ({ children }) => {

const { data } = useLevelQuery({ fetchPolicy: "cache-only" })
const level = data?.me?.defaultAccount?.level
const isAtLeastLevelOne = level === "ONE" || level === "TWO"
const isAtLeastLevelOne = level === "ONE" || level === "TWO" || level === "THREE"

const currentLevel = isAuthed && level ? level : "NonAuth"

Expand Down
2 changes: 1 addition & 1 deletion app/screens/settings-screen/settings-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const SettingsScreen: React.FC = () => {
name={LL.SettingsScreen.addressScreen()}
items={items.waysToGetPaid}
/>
{currentLevel === AccountLevel.Two && (
{(currentLevel === AccountLevel.Two || currentLevel === AccountLevel.Three) && (
<SettingsGroup name="Reports" items={items.reports} />
)}
<SettingsGroup name="Experimental" items={items.experimental} />
Expand Down