Skip to content

Commit

Permalink
oops - put back the not yet implmented saveToMyHarmony
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnyTodgers committed Jul 5, 2023
1 parent 418c2e6 commit ed29495
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,21 @@ function App() {
})
}


const saveToMyHarmony = () => {
let h = {}
h.apiData = JSON.parse(JSON.stringify(apiData));
h.resultsOptions = resultsOptions;
h.public = false;
h.created = new Date();
return new Promise((resolve, reject) => {
storeHarmonisation(h).then((docRef) => {
resolve(window.location.origin + "/#/match/" + docRef);
}).catch(e => {
console.log(e)
reject("Could not create share link")
})
})
}

const downloadExcel = () => {
const exportedData = apiData.map(instrument=>{
Expand Down

0 comments on commit ed29495

Please sign in to comment.