FoodleBerlin/foodle

Fix: Profile

Closed this issue · 2 comments

Flajt commented

Fixing errors in the page and components

Flajt commented

In line 44, ProfilePage.tsx we require user.description, which doesn't exist in the query.

Do we need that or not?
If we do, we need some changes in the backend, if not I would remove it.

Thoughts? @AAlber @conuko

Flajt commented

I've tried to reverse-engineer the missing description tag, but IDK why it's not there. There is a missing description tag under: account.ts

export const FindUser = gql`
  query FindUser($handle: String!) {
    findUser(handle: $handle) {
      __typename
      User {
        __typename
        email
        handle
        fullName
        zip
        dob
        passportS3Id
        solvencyS3Id
        licenseS3Id
        charges {
          amount
          date
          card
          status
          description
          invoiceId
          currency
        }
        paymentMethods {
          cardNumber
          expiryMonth
          expiryYear
          type
        }
        defaultPayment {
          cardNumber
          expiryMonth
          expiryYear
          type
        }
      }
      ClientErrorUserNotExists {
        __typename
        message
      }
      ClientErrorInvalidHandle {
        __typename
        message
      }
    }
  }
`;

The only description is in the charges section, but this shouldn't be the one required. As this is in the codegen folder I can't just modify it can I?