File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import Format from "../utils/format";
1414import { UserProfile , RankAndCount } from "@monkeytype/contracts/schemas/users" ;
1515import { abbreviateNumber , convertRemToPixels } from "../utils/numbers" ;
1616import { secondsToString } from "../utils/date-and-time" ;
17+ import { Auth } from "../firebase" ;
1718
1819type ProfileViewPaths = "profile" | "account" ;
1920type UserProfileOrSnapshot = UserProfile | DB . Snapshot ;
@@ -331,6 +332,12 @@ export async function update(
331332 }
332333 }
333334
335+ if ( profile . uid === Auth ?. currentUser ?. uid ) {
336+ profileElement . find ( ".userReportButton" ) . addClass ( "hidden" ) ;
337+ } else {
338+ profileElement . find ( ".userReportButton" ) . removeClass ( "hidden" ) ;
339+ }
340+
334341 //structure
335342
336343 const bioAndKey = bio || keyboard ;
You can’t perform that action at this time.
0 commit comments