From 08bf8c1b3e3c405dcecd3847c54addebeceb67c5 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Sat, 8 Dec 2018 20:46:31 -0500 Subject: [PATCH 1/2] Update fetch-metadata.js Trying to match the tip example... --- app/helpers/fetch-metadata.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/helpers/fetch-metadata.js b/app/helpers/fetch-metadata.js index 7fe773a..8de60b9 100644 --- a/app/helpers/fetch-metadata.js +++ b/app/helpers/fetch-metadata.js @@ -122,9 +122,10 @@ export default async(data, socket) => { const memePublishResponse = await publishMeme(body); switch(true) { - case memePublishResponse.result: - case memePublishResponse.result.claim_address: - explorerNotice = memePublishMessaging(memePublishResponse); + case data.example === 2: + case memePublishResponse.body.result: + case memePublishResponse.body.result.claim_address: + explorerNotice = memePublishMessaging(memePublishResponse.body); break; default: From 9cf16e2c74686c196b6525774d98fd41f8fff5cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Tue, 11 Dec 2018 11:35:49 -0600 Subject: [PATCH 2/2] Fixed error with parsing response for 2nd Playground example --- app/helpers/fetch-metadata.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/fetch-metadata.js b/app/helpers/fetch-metadata.js index 8de60b9..0ca2f34 100644 --- a/app/helpers/fetch-metadata.js +++ b/app/helpers/fetch-metadata.js @@ -123,9 +123,9 @@ export default async(data, socket) => { switch(true) { case data.example === 2: - case memePublishResponse.body.result: - case memePublishResponse.body.result.claim_address: - explorerNotice = memePublishMessaging(memePublishResponse.body); + case memePublishResponse.result: + case memePublishResponse.result.claim_address: + explorerNotice = memePublishMessaging(memePublishResponse); break; default: