artsy / eigen

The Art World in Your Pocket or Your Trendy Tech Company's Tote, Artsy's mobile app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code repeating in MyAccount.tsx

vitaliyirtlach opened this issue · comments

  const facebookLinked = me.authentications.map((a) => a.provider).includes("FACEBOOK")
  const googleLinked = me.authentications.map((a) => a.provider).includes("GOOGLE")
  const appleLinked = me.authentications.map((a) => a.provider).includes("APPLE")

to:

  const providers = me.authentications.map((a) => a.provider)
  const facebookLinked = providers.includes("FACEBOOK")
  const googleLinked = providers.includes("GOOGLE")
  const appleLinked = providers.includes("APPLE")
commented

Thanks for reporting! Addressed here #8251