|
@ -52,14 +52,15 @@ |
|
|
function clickHistory() { |
|
|
function clickHistory() { |
|
|
isHistoryOpen = true; |
|
|
isHistoryOpen = true; |
|
|
} |
|
|
} |
|
|
let matches: Array<Match> = [ |
|
|
let matches: Array<Match>; |
|
|
{ winner: "Alice", loser: "Bob", points: -5, rank: "22" }, |
|
|
|
|
|
{ winner: "Alice", loser: "Bob", points: 10, rank: "24" }, |
|
|
export async function getHistory(): Promise<Match[]> { |
|
|
{ winner: "Alice", loser: "Bob", points: 10, rank: "24" }, |
|
|
let response = await fetch(API_URL + "/history/" + $store.ftId, { |
|
|
{ winner: "Alice", loser: "Bob", points: 7, rank: "23" }, |
|
|
credentials: "include", |
|
|
{ winner: "Alice", loser: "Bob", points: 10, rank: "24" }, |
|
|
mode: "cors", |
|
|
{ winner: "Alice", loser: "Bob", points: 10, rank: "24" }, |
|
|
}); |
|
|
]; |
|
|
return await response.json(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// FRIENDS |
|
|
// FRIENDS |
|
|
|
|
|
|
|
|