Skip to content

Commit

Permalink
Remove island field from GetCurrentInventory query
Browse files Browse the repository at this point in the history
  • Loading branch information
mfcochauxlaberge committed Jun 22, 2024
1 parent 6c1f059 commit 01e14fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ export type GetCurrentInventoryQueryVariables = Exact<{
}>;


export type GetCurrentInventoryQuery = { __typename?: 'Query', inventory: { __typename?: 'Inventory', id: string, populationUsed: number, populationFree: number, populationTotal: number, energyUsed: number, energyFree: number, energyTotal: number, materialProduction: number, material: number, foodProduction: number, food: number, frozenFoodProduction: number, frozenFood: number, frozenFoodStorage: number, bankLevels: number, timestamp: any, island: { __typename?: 'Island', lastUpdateAt: any } } | { __typename?: 'NotAuthorized' } | { __typename?: 'NotFound' } };
export type GetCurrentInventoryQuery = { __typename?: 'Query', inventory: { __typename?: 'Inventory', id: string, populationUsed: number, populationFree: number, populationTotal: number, energyUsed: number, energyFree: number, energyTotal: number, materialProduction: number, material: number, foodProduction: number, food: number, frozenFoodProduction: number, frozenFood: number, frozenFoodStorage: number, bankLevels: number, timestamp: any } | { __typename?: 'NotAuthorized' } | { __typename?: 'NotFound' } };

export type LoginQueryVariables = Exact<{
username: Scalars['String']['input'];
Expand Down Expand Up @@ -1416,9 +1416,6 @@ export const GetCurrentInventoryDocument = gql`
frozenFoodStorage
bankLevels
timestamp
island {
lastUpdateAt
}
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/libs/session/inventory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ const InventoryProvider: FunctionComponent<{ children?: React.ReactNode }> = ({
frozenFoodStorage
bankLevels
timestamp
island {
lastUpdateAt
}
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Registration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ const Registration = () => {
<UsernameInput disabled={registered} />
<PasswordInput disabled={registered} />
<HCaptcha
// sitekey="10000000-ffff-ffff-ffff-000000000001"
sitekey="36cde9f3-38a3-4fd7-9314-bac28f55545b"
sitekey="10000000-ffff-ffff-ffff-000000000001"
// sitekey="36cde9f3-38a3-4fd7-9314-bac28f55545b"
onVerify={(c: string) => {
setCaptcha(c);
}}
Expand Down

0 comments on commit 01e14fc

Please sign in to comment.