Added quick comments about code

This commit is contained in:
Valtteri Karesto
2021-12-13 22:54:57 +02:00
parent d67613c0cf
commit 380e196db2
9 changed files with 37 additions and 2 deletions

View File

@@ -4,7 +4,9 @@ import state from '../index';
const octokit = new Octokit();
// Fetch content from Githug Gists
/* Fetches Gist files from Githug Gists based on
* gistId and stores the content in global state
*/
export const fetchFiles = (gistId: string) => {
state.loading = true;
if (gistId && !state.files.length) {