message: make sendPayment works again
diff: @@ -13,7 +13,7 @@ import { StoreContext } from "../../models"
  import { color } from "../../theme"
  import { palette } from "../../theme/palette"
  import { getDescription } from "../../utils/lightning"
  -import { GraphQLClientWrapper } from "../../utils/request"
  +import { request } from "../../utils/request"
  const CAMERA: ViewStyle = {
  width: "100%",
  @@ -83,6 +83,8 @@ const styles = StyleSheet.create({
  })
  export const ScanningQRCodeScreen = () => {
  + const store = React.useContext(StoreContext)
  +
  const { navigate } = useNavigation()
  const pasteInvoice = async () => {
  @@ -90,7 +92,6 @@ export const ScanningQRCodeScreen = () => {
  }
  const decodeInvoice = async (data) => {
  - const store = React.useContext(StoreContext)
  try {
  // invoice might start with 'lightning:', 'bitcoin:', something else, or have the invoice directly
  @@ -205,8 +206,6 @@ export const SendBitcoinScreen: React.FC = ({ route }) => {
  // payreq.amt = amount
  }
  - console.tron.log({invoice})
  -
  setLoading(true)
  // try {
  // if (useUSD) {
  @@ -219,15 +218,16 @@ export const SendBitcoinScreen: React.FC = ({ route }) => {
  // }
  try {
  - const query = `mutation payInvoice($uid: String, $invoice: String) {
  - invoice(uid: $uid) {
  + const query = `mutation payInvoice($invoice: String) {
  + invoice {
  payInvoice(invoice: $invoice)
  }
  }`
  - const result = await GraphQLClientWrapper.request(query, {invoice})
  + const result = await request(query, {invoice})
  if (result.invoice.payInvoice === "success") {
  + store.queryWallet()
  setMessage("Payment succesfull")
  } else if (result.invoice.payInvoice === "pending") {
  setMessage("Payment has been sent but is not confirmed yet")
  