(type: string)
| 184 | } |
| 185 | |
| 186 | getPrincipal(type: string) { |
| 187 | let principal: Principal | undefined; |
| 188 | for (const p of this.principals) { |
| 189 | if (p.type === type) { |
| 190 | principal = p.principal; |
| 191 | break; |
| 192 | } |
| 193 | } |
| 194 | return principal; |
| 195 | } |
| 196 | |
| 197 | get user() { |
| 198 | return this.getPrincipal('USER') as UserProfile | undefined; |
no outgoing calls
no test coverage detected