aboutsummaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/models')
-rw-r--r--src/models/PeerTeacher.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/models/PeerTeacher.ts b/src/models/PeerTeacher.ts
index 9069069..7fee179 100644
--- a/src/models/PeerTeacher.ts
+++ b/src/models/PeerTeacher.ts
@@ -101,6 +101,8 @@ export default class PeerTeacher {
return total_hours;
}
+ // The public URL for displaying an an image on Google Drive has to be in this format
+ // This function simply replaces everthing before '=' with ''
get drive_pic(): string {
if (this.prof_pic_url == null || this.prof_pic_url == undefined) return ""
return `https://drive.google.com/uc?export=view&id=${this.prof_pic_url.replace(/^[^=]*=/, '')}`;